home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 65.zip
/
BS1 part 65
/
Math Visin v2.1 disk 1.adf
/
Arexx.WB
/
Contour
/
Center
< prev
next >
Wrap
Text File
|
1992-02-12
|
1KB
|
44 lines
/* Center Allow to enter Screen Coordinates as center and width
Normally the screen coordinates in MathVision are entered by specifying
the edges of the screen; Xmin, Xmax, Ymin and Ymax.
Ymax +----------+
| |
| |
Ymin +----------+
Xmin Xmax
Sometimes this is awkward, so this program lets you use an alternate
system. In this system you specify the center of the screen, and
how wide an area around it you wish to view.
<------- Xwidth ------>
+-----------------------+ ^
| | |
| | |
| (Xcenter,YCenter) | YWidth
| | |
| | |
+-----------------------+ v
==========================================================================*/
ADDRESS "MathVision"
OPTIONS RESULTS
NUMERIC DIGITS 14
OPTIONS PROMPT "XCenter XWidth: "
PULL xcenter xwidth
OPTIONS PROMPT "YCenter YWidth: "
PULL ycenter ywidth
EditScreenToFront
xmin xcenter-xwidth/2
xmax xcenter+xwidth/2
ymin ycenter-ywidth/2
ymax ycenter+ywidth/2